﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeBehind="InserirBlogs.aspx.cs" Inherits="CursoUNICEUB.InserirBlogs" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        Cadastrar um blog</h1>
    <table>
        <tr>
            <td>
                <asp:Label runat="server">Nome : </asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtNome" MaxLength="50" Width="150px" />
                <asp:RequiredFieldValidator ID="rfvNome" runat="server" ErrorMessage="Nome do blog."
                    ControlToValidate="txtNome" Text="*" ValidationGroup="incluir"/>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server">URL : </asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtURL" MaxLength="150" Width="250px" />
                <asp:RequiredFieldValidator ID="rfvURL" runat="server" ErrorMessage="URL do blog."
                    ControlToValidate="txtURL" Text="*" ValidationGroup="incluir"/>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <asp:Button ID="btnInserirBlogs" runat="server" Text="Inserir" 
                    ValidationGroup="incluir" onclick="btnInserirBlogs_Click" />
                <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" PostBackUrl="~/Default.aspx" ValidationGroup="incluir" />
                <asp:ValidationSummary ID="vSum" runat="server" HeaderText="Favor verificar os seguintes campos :"
                    ShowMessageBox="True" ShowSummary="False" ValidationGroup="incluir" />
            </td>
        </tr>
    </table>
</asp:Content>
